using UnityEngine;

public class PlayerButtonMain : MonoBehaviour
{
	public new UILabel name;

	public UISprite flag;

	public UILabel stars;

	private void OnEnable()
	{
		GGPlayerSettings instance = GGPlayerSettings.instance;
		name.text = instance.GetName();
		GameConstants.SetFlag(flag, instance.Model.flag);
		stars.text = instance.Level().ToString();
	}
}
